package com.ffox.controller;

import com.ffox.entity.StudentInformation;
import com.ffox.result.Result;
import com.ffox.service.UserParentMychildService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/userTeacherClass")
public class UserParentMychildController {

    @Autowired
    private UserParentMychildService userTeacherClassService;

    @RequestMapping("/getStudentListByNumber")
    public Result<List<StudentInformation>> getStudentListByNumber(@RequestParam String number){
        return userTeacherClassService.getStudentListByNumber(number);
    }

    @RequestMapping("/updateStudentUserNum")
    public Integer updateStudentUserNum(@RequestParam String idCard,@RequestParam String number){
        return userTeacherClassService.updateStudentUserNum(idCard,number);
    }

}
